import React from "react";
import PropTypes from 'prop-types'
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";


const BottomBtn = ({text, colorClass, icon, onBtnClik}) => {

    return (
        <button
            type="button"
            className={`btn btn-block no-border ${colorClass}`}
            onClick={onBtnClik}
        >
            <FontAwesomeIcon
                className="mr-2"
                size='lg'
                icon={icon}/>

            {text}
        </button>

    )


}
BottomBtn.defaultProps = {
    text: '新建'
}
export default BottomBtn
